#ifndef __ENT__
#define __ENT__

#include <vector>
#include <map>
#include "Ent.h"

class World;

class EntHandler {
private:
	std::vector<Ent*> list;
	std::map<std::string, Ent*> names;
	World* world;

public:
	EntHandler(World*);
	~EntHandler();
	void add(Ent*);
	void remove(Ent*);

	Ent* find(std::string);

	void thinkAll();
	void drawAll();

	World* getWorld();

protected:
	void setName(Ent*, std::string);
	std::string getName(Ent*);
	friend class Ent;
};

#endif
